home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Sample Code / 7Edit 3.1 / Sources / SVAESetData.h < prev    next >
Encoding:
Text File  |  1995-11-20  |  1.2 KB  |  36 lines  |  [TEXT/CWIE]

  1. // SVAESetData.h
  2. //
  3. // 7Edit 3.1d1. Original version by Jon Lansdell and Nigel Humphreys.
  4. // 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1995, all rights reserved.
  6.  
  7. #ifndef __SVAESETDATA__
  8. #define __SVAESETDATA__
  9.  
  10. #include <Printing.h>
  11.  
  12. #include "SVToken.h"
  13.  
  14. pascal OSErr    DoSetData(const AppleEvent    *theAppleEvent,
  15.                                 AppleEvent    *reply,
  16.                                 long        handlerRefCon);
  17.  
  18. OSErr             HandleSetData(const AEDesc *theObj, AEDesc *dataDesc);
  19.  
  20. OSErr            SetWindowProperty(const AEDesc *theWPTokenDesc, const AEDesc *dataDesc);
  21. OSErr            SetWindowSelectionProperty(WindowPtr theWindow, const AEDesc *dataDesc);
  22.  
  23. OSErr            SetTextProperty(const AEDesc *tokenDesc, const AEDesc *dataDesc);
  24.  
  25. OSErr            SetFontOfTextToken(TextToken* theToken, Str255 name);
  26. OSErr            SetSizeOfTextToken(TextToken* theToken, short theSize);
  27. OSErr            SetStyleOfTextToken(TextToken* theToken, Style onStyle, Style offStyle);
  28. OSErr            GetTextStyles(const AEDesc *dataDesc, Style *onStyles, Style *offStyles);
  29. void            AddDescStyleItem(DescType theDesc, Style *theStyle);
  30. OSErr            MakeStyleFromAEList(const AEDescList *styleList, Style *theStyle, Boolean *hadPlain);
  31. short             ItemForNamedFont(Str255 theName);
  32.  
  33. OSErr            GetTHPrintFromDescriptor(const AEDesc *sourceDesc, THPrint *result);
  34.  
  35. #endif
  36.